<template>
  <view class="body">
    <image mode="widthFix" src="/static/images/tuancanyouwo.png" />
    <!--    <view class="order-time">
      <view class="header">
        <text>————</text>
        <text class="title">点餐时间</text>
        <text>————</text>
      </view>
      <view>
        <text>截单时间：11:10</text>
        <text>\n</text>
        <text>送达时间：11:50-12:00</text>
      </view>
    </view> -->
    <view class="order-area">
      <view class="order-area-text">开启您的美味午餐之旅</view>
      <navigator open-type="switchTab" url="/pages/category/category">
        <button class="order-button" type="primary">
          <view>
            <image class="icon" src="/static/icons/knife-and-fork.svg" />
            <text>立即下单</text>
          </view>
        </button>
      </navigator>
    </view>
    <view class="kind-tips">
      <view class="header">
        <text>————</text>
        <text class="title">温馨提示</text>
        <text>————</text>
      </view>
      <view class="textstyles">
        <text>为避免取餐延迟，点餐时请务必确定您的取餐地址</text>
        <!-- <text>1、当前仅开放周一至周五午餐供应（部分网点的供周六午餐）；</text>
        <text>\n</text>
        <text>2、为避免取餐延迟，点餐时请务必确定您的取餐地址；</text> -->
      </view>
    </view>
    <view class="professional-group-meal">
      <view class="header">
        <text>————</text>
        <text class="title">专业团餐</text>
        <text>————</text>
      </view>
      <view class="textstyles">
        <text>订餐电话：13302483056</text>
      </view>
    </view>
  </view>
</template>
<script lang="ts" setup></script>
<style lang="scss" scoped>
  .body {
    background-color: #ffe56e;
    min-height: 100vh;

    .order-time,
    .order-area,
    .kind-tips,
    .company-profile,
    .professional-group-meal {
      margin-left: 20rpx;
      margin-right: 20rpx;
      padding: 20rpx;
      background-color: white;
      border-radius: 20rpx;
    }

    .order-time .header,
    .kind-tips .header,
    .company-profile .header,
    .professional-group-meal .header {
      text-align: center;
      color: #0d7840;
      font-weight: bold;
      font-size: 40rpx;

      .title {
        margin-left: 20rpx;
        margin-right: 20rpx;
      }
    }

    .order-time {
      transform: translateY(-168rpx);
    }

    .textstyles {
      text-align: center;
    }

    .order-area {
      transform: translateY(-148rpx);
      display: flex;
      flex-direction: column;
      justify-content: center;
      margin-top: 40px;

      .order-area-text {
        display: flex;
        justify-content: left;
        text-align: left;
      }

      .order-button {
        margin-top: 10px;
        width: 160px;

        .icon {
          width: 80rpx;
          height: 80rpx;
        }
      }
    }

    .kind-tips {
      transform: translateY(-128rpx);
    }

    .company-profile {
      transform: translateY(-108rpx);
    }

    .professional-group-meal {
      transform: translateY(-88rpx);
    }
  }
</style>
